package com.qidian.mes.pojo;

import lombok.Data;

import java.util.Date;
import java.util.Objects;

/**
 * @Author 32郗建狄
 * @Company GX631
 * Time 2023/10/25 19:32
 * Description  物料产品表
 */
@Data
public class MdItem {
    private Long    itemId;             //物料ID
    private String itemCode;                //物料编码
    private String itemName;                //物料名称
    private String specification;               //规格型号
    private Long measureId;               //单位ID
    private String measureName;           //单位名称
    private String itemOrProduct;               //物料产品标识
    private Long    itemTypeId;             //物料类型ID
    private String itemTypeCode;                //物料类型编码
    private String itemTypeName;                //物料类型名称
    private String enableFlag;              //是否启用
    private String safeStockFlag;               //是否设置安全库存
    private Double minStock;                //最低库存数量
    private Double maxStock;                //最高库存数量
    private String remark;              //备注
    private String createBy;                //创建人
    private Date    createTime;             //创建时间
    private String updateBy;                //更新人
    private Date    updateTime;             //更新时间
    private Long    createTimeMillis;
    private Long    modifyTimeMillis;

    public Long getCreateTimeMillis() {
        if (Objects.nonNull(this.createTime)) {
            return this.createTime.getTime();
        }
        return null;
    }

    public void setCreateTimeMillis(Long createTimeMillis) {
        this.createTimeMillis = createTimeMillis;
    }

    public Long getModifyTimeMillis() {
        if (Objects.nonNull(this.updateTime)) {
            return this.updateTime.getTime();
        }
        return null;
    }

    public void setModifyTimeMillis(Long modifyTimeMillis) {
        this.modifyTimeMillis = modifyTimeMillis;
    }
}
